#pragma once
#include "UIlib.h"
#include "MyConfig.h"

using namespace DuiLib;

#define WM_MENU_TOPMOST			WM_USER+100
#define WM_MENU_AUTOSTART		WM_USER+101
#define WM_MENU_TRANSPARENCE	WM_USER+102
#define WM_MENU_CLOSE			WM_USER+103

class CPopupMenu : public WindowImplBase
{
public:
	CPopupMenu();
	~CPopupMenu();
	virtual void InitWindow();
	virtual LPCTSTR GetWindowClassName() const;
	virtual CDuiString GetSkinFile();
	virtual CDuiString GetSkinFolder();
	virtual CDuiString GetSkinType();
	virtual LRESULT OnKillFocus(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& bHandled);
	HWND m_Parent;

	DUI_DECLARE_MESSAGE_MAP()

	void OnTopMost(TNotifyUI& msg);
	void OnAutoStart(TNotifyUI& msg);
	void OnTransparence(TNotifyUI& msg);
	void OnClose(TNotifyUI& msg);

};

